<!DOCTYPE html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Ubuntu,">










<meta name="description" content="Ubuntu安装 具体安装不再赘述，简要说几个安装当中需要注意的几个点。  分区 分区是安装中需要特别注意的点,当然你可以直接使用默认的安装模式来安装,但是可能你不知道里面的细节而导致一些问题的出现. 主要需要分这么几个区: 1,挂载/  的根目录,这个目录存放的是Linux系统的的主要文件,一般分超过30g即可,具体按照自身的硬盘的大小来分,可以大,但是不能过小,防止升级系统出现硬盘容量不够的情">
<meta name="keywords" content="Ubuntu">
<meta property="og:type" content="article">
<meta property="og:title" content="ubuntu部署及优化">
<meta property="og:url" content="https://xxyuan.net/2019/11/04/ubuntu部署及优化/index.html">
<meta property="og:site_name" content="晓远Blog">
<meta property="og:description" content="Ubuntu安装 具体安装不再赘述，简要说几个安装当中需要注意的几个点。  分区 分区是安装中需要特别注意的点,当然你可以直接使用默认的安装模式来安装,但是可能你不知道里面的细节而导致一些问题的出现. 主要需要分这么几个区: 1,挂载/  的根目录,这个目录存放的是Linux系统的的主要文件,一般分超过30g即可,具体按照自身的硬盘的大小来分,可以大,但是不能过小,防止升级系统出现硬盘容量不够的情">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://xxyuan.net/2019/11/04/ubuntu部署及优化/ubuntu应用截图.png">
<meta property="og:updated_time" content="2019-11-16T14:20:50.186Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ubuntu部署及优化">
<meta name="twitter:description" content="Ubuntu安装 具体安装不再赘述，简要说几个安装当中需要注意的几个点。  分区 分区是安装中需要特别注意的点,当然你可以直接使用默认的安装模式来安装,但是可能你不知道里面的细节而导致一些问题的出现. 主要需要分这么几个区: 1,挂载/  的根目录,这个目录存放的是Linux系统的的主要文件,一般分超过30g即可,具体按照自身的硬盘的大小来分,可以大,但是不能过小,防止升级系统出现硬盘容量不够的情">
<meta name="twitter:image" content="https://xxyuan.net/2019/11/04/ubuntu部署及优化/ubuntu应用截图.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://xxyuan.net/2019/11/04/ubuntu部署及优化/">





  <title>ubuntu部署及优化 | 晓远Blog</title>
  





  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?b7fbd9803fe7b8df6faf867c7b94ce2a";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">晓远Blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://xxyuan.net/2019/11/04/ubuntu部署及优化/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="晓远">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="晓远Blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">ubuntu部署及优化</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-11-04T11:33:48+08:00">
                2019-11-04
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/开发/" itemprop="url" rel="index">
                    <span itemprop="name">开发</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h3 id="Ubuntu安装"><a href="#Ubuntu安装" class="headerlink" title="Ubuntu安装"></a>Ubuntu安装</h3><blockquote>
<p>具体安装不再赘述，简要说几个安装当中需要注意的几个点。</p>
</blockquote>
<h4 id="分区"><a href="#分区" class="headerlink" title="分区"></a>分区</h4><blockquote>
<p>分区是安装中需要特别注意的点,当然你可以直接使用默认的安装模式来安装,但是可能你不知道里面的细节而导致一些问题的出现.</p>
<p>主要需要分这么几个区:</p>
<p>1,挂载/  的根目录,这个目录存放的是Linux系统的的主要文件,一般分超过30g即可,具体按照自身的硬盘的大小来分,可以大,但是不能过小,防止升级系统出现硬盘容量不够的情况.</p>
<p>2挂载 / boot的启动目录,1g即可</p>
<p>3,挂载 swap内存交换空间,具体和自身的内存总容量保持一致.</p>
<p>4,挂载/home的用户目录,其他剩余空间都可以分配给这个.</p>
<p>另外注意下,启动的efi,若是双系统使用的用户,一定注意下方的启动目录使用efi所在的目录,不然引导会出现不成功,出现无法启动的情况</p>
</blockquote>
<h4 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h4><blockquote>
<p>开始安装不用使用wifi连接,因为在安装过程中回去网络下载很多的资源,减慢安装部署速度,开始可以尽量离线安装即可,后续在修改国内比较快的镜像来更新即可.</p>
</blockquote>
<p><img src="/2019/11/04/ubuntu部署及优化/ubuntu应用截图.png" alt="ubuntu部署及优化"></p>
<a id="more"></a>
<h3 id="Ubuntu的使用及优化"><a href="#Ubuntu的使用及优化" class="headerlink" title="Ubuntu的使用及优化"></a>Ubuntu的使用及优化</h3><h4 id="时间同步"><a href="#时间同步" class="headerlink" title="时间同步"></a>时间同步</h4><blockquote>
<p>Linux 的系统会有时间同步问题,原因是硬件的时间和系统获取时间不一致造成的.</p>
</blockquote>
<blockquote>
<p>1.安装<code>ntpdate</code>工具</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&gt; sudo apt-get install ntpdate1</span><br><span class="line">&gt;</span><br></pre></td></tr></table></figure>
</blockquote>
<blockquote>
<p>2.将系统时间与网络同步</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&gt; ntpdate cn.pool.ntp.org1</span><br><span class="line">&gt;</span><br></pre></td></tr></table></figure>
</blockquote>
<blockquote>
<p>3.将时间写入硬件</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">&gt; hwclock --systo</span><br><span class="line">&gt;</span><br></pre></td></tr></table></figure>
</blockquote>
<h4 id="更新系统"><a href="#更新系统" class="headerlink" title="更新系统"></a>更新系统</h4><blockquote>
<p>​    切换中国源,使用阿里的源或者清华源</p>
</blockquote>
<blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">&gt;sudo apt-get update</span><br><span class="line">&gt;sudo apt-get upgrade</span><br><span class="line">&gt;</span><br></pre></td></tr></table></figure>
</blockquote>
<h4 id="安装Gnome-tweak-tool"><a href="#安装Gnome-tweak-tool" class="headerlink" title="安装Gnome-tweak-tool"></a>安装Gnome-tweak-tool</h4><blockquote>
<p>sudo apt-get install gnome-tweak-tool</p>
</blockquote>
<h4 id="安装插件"><a href="#安装插件" class="headerlink" title="安装插件"></a>安装插件</h4><blockquote>
<p>网址:<a href="https://extensions.gnome.org/" target="_blank" rel="noopener">https://extensions.gnome.org/</a></p>
<p>或者直接使用软件中心安装</p>
</blockquote>
<h4 id="Hide-top-bar"><a href="#Hide-top-bar" class="headerlink" title="Hide top bar"></a>Hide top bar</h4><blockquote>
<p>自动隐藏顶部栏,增加使用面积,不喜欢顶部这个栏可以用这个去掉</p>
</blockquote>
<h4 id="no-title-bar"><a href="#no-title-bar" class="headerlink" title="no title bar"></a>no title bar</h4><blockquote>
<p>软件顶部通常都有那个没什么用出的标题栏,可以使用这个插件隐藏起来</p>
</blockquote>
<h4 id="system-monitor"><a href="#system-monitor" class="headerlink" title="system-monitor"></a>system-monitor</h4><blockquote>
<p>网速cpu内存监控</p>
</blockquote>
<h4 id="美化UI"><a href="#美化UI" class="headerlink" title="美化UI"></a>美化UI</h4><blockquote>
<p>可以使用github直接下载</p>
<p>或者使用<a href="https://www.pling.com/s/Gnome来自己寻找好看的主题和图标" target="_blank" rel="noopener">https://www.pling.com/s/Gnome来自己寻找好看的主题和图标</a></p>
</blockquote>
<h4 id="终端美化"><a href="#终端美化" class="headerlink" title="终端美化"></a>终端美化</h4><blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">&gt;sudo apt-get install zsh</span><br><span class="line">&gt;</span><br><span class="line">&gt;sudo apt-get install git</span><br><span class="line">&gt;</span><br><span class="line">&gt;sudo wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh</span><br><span class="line">&gt;chsh -s /bin/zsh</span><br><span class="line">&gt;</span><br></pre></td></tr></table></figure>
</blockquote>
<blockquote>
</blockquote>
<h4 id="软件"><a href="#软件" class="headerlink" title="软件"></a>软件</h4><blockquote>
<p>软件大多都是deb安装，直接到官网上面下载安装即可</p>
<p>网易云音乐、idea全家桶、百度网盘、搜狗输入法、xmind思维导图、wps、QQ、vscode，chromle浏览器</p>
<p>git的Linux桌面版本</p>
<p>这些都有Linux的专属版本</p>
</blockquote>
<h4 id="显卡驱动"><a href="#显卡驱动" class="headerlink" title="显卡驱动"></a>显卡驱动</h4><blockquote>
<p>sudo add-apt-repository ppa:graphics-drivers/ppa</p>
<p>$ sudo apt-get update</p>
<p>这里要安装适合自身的驱动</p>
<p>ubuntu-drivers devices  </p>
<p>$ sudo apt-get install nvidia-367nvidia-settings nvidia-prime  </p>
<p>查看一下系统是否安装成功</p>
<p>注意注意，安装驱动不是自己的驱动会可能出现黑屏状况</p>
</blockquote>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/Ubuntu/" rel="tag"># Ubuntu</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/10/21/AnroidAutoSize自动适配/" rel="next" title="AnroidAutoSize自动适配">
                <i class="fa fa-chevron-left"></i> AnroidAutoSize自动适配
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019/11/11/Dsbridge使用/" rel="prev" title="Dsbridge使用">
                Dsbridge使用 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">晓远</p>
              <p class="site-description motion-element" itemprop="description">这个一个关于博客的个人网站</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">51</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">3</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">37</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#Ubuntu安装"><span class="nav-number">1.</span> <span class="nav-text">Ubuntu安装</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#分区"><span class="nav-number">1.1.</span> <span class="nav-text">分区</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#安装"><span class="nav-number">1.2.</span> <span class="nav-text">安装</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Ubuntu的使用及优化"><span class="nav-number">2.</span> <span class="nav-text">Ubuntu的使用及优化</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#时间同步"><span class="nav-number">2.1.</span> <span class="nav-text">时间同步</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#更新系统"><span class="nav-number">2.2.</span> <span class="nav-text">更新系统</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#安装Gnome-tweak-tool"><span class="nav-number">2.3.</span> <span class="nav-text">安装Gnome-tweak-tool</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#安装插件"><span class="nav-number">2.4.</span> <span class="nav-text">安装插件</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Hide-top-bar"><span class="nav-number">2.5.</span> <span class="nav-text">Hide top bar</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#no-title-bar"><span class="nav-number">2.6.</span> <span class="nav-text">no title bar</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#system-monitor"><span class="nav-number">2.7.</span> <span class="nav-text">system-monitor</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#美化UI"><span class="nav-number">2.8.</span> <span class="nav-text">美化UI</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#终端美化"><span class="nav-number">2.9.</span> <span class="nav-text">终端美化</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#软件"><span class="nav-number">2.10.</span> <span class="nav-text">软件</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#显卡驱动"><span class="nav-number">2.11.</span> <span class="nav-text">显卡驱动</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-snowflake-o"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">晓远</span>

  
</div>









        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
